.class Lcom/direction/hold/ui/SearchActivity$1;
.super Landroid/os/Handler;


# instance fields
.field private synthetic a:Lcom/direction/hold/ui/SearchActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/SearchActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method private a(ILjava/lang/String;Ljava/lang/String;)V
    .locals 3

    const v2, 0x7f080090

    if-nez p2, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v0, p3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->d:I

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    :goto_0
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0, p1}, Lcom/direction/hold/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->J:Ljava/util/Map;

    invoke-interface {v1, p3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v1, 0x0

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    return-void

    :cond_0
    move-object v1, p2

    goto :goto_0

    :cond_1
    const/4 v1, 0x4

    goto :goto_1
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    const v0, 0x7f08008c

    const-string v1, "folder"

    invoke-direct {p0, v0, p1, v1}, Lcom/direction/hold/ui/SearchActivity$1;->a(ILjava/lang/String;Ljava/lang/String;)V

    const v0, 0x7f08000a

    const-string v1, "image"

    invoke-direct {p0, v0, p1, v1}, Lcom/direction/hold/ui/SearchActivity$1;->a(ILjava/lang/String;Ljava/lang/String;)V

    const v0, 0x7f08008d

    const-string v1, "audio"

    invoke-direct {p0, v0, p1, v1}, Lcom/direction/hold/ui/SearchActivity$1;->a(ILjava/lang/String;Ljava/lang/String;)V

    const v0, 0x7f08000b

    const-string v1, "video"

    invoke-direct {p0, v0, p1, v1}, Lcom/direction/hold/ui/SearchActivity$1;->a(ILjava/lang/String;Ljava/lang/String;)V

    const v0, 0x7f08000d

    const-string v1, "apk"

    invoke-direct {p0, v0, p1, v1}, Lcom/direction/hold/ui/SearchActivity$1;->a(ILjava/lang/String;Ljava/lang/String;)V

    const v0, 0x7f08008e

    const-string v1, "doc"

    invoke-direct {p0, v0, p1, v1}, Lcom/direction/hold/ui/SearchActivity$1;->a(ILjava/lang/String;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_0
    const-string v0, "\u2014"

    invoke-direct {p0, v0}, Lcom/direction/hold/ui/SearchActivity$1;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/SearchListViewHolder;->e()V

    :cond_1
    :goto_0
    return-void

    :cond_2
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    iget-object v2, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-boolean v2, v2, Lcn/cheln/explorer/ui/SearchListViewHolder;->g:Z

    invoke-virtual {v0, v1, v2}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/String;Z)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-boolean v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->g:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$1;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->g:Z

    goto :goto_0

    :pswitch_2
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/direction/hold/ui/SearchActivity$1;->a(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
